﻿<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8">
    <title>@ViewBag.Title</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="~/web/images/favicon.ico">
    <link href="~/js/layui/css/layui.css" rel="stylesheet" />
    <link href="~/web/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href="~/css/public.css" rel="stylesheet" />
    @await RenderSectionAsync("css", false)
</head>
<body>
    <form class="layui-form" id="domainform" lay-filter="form">
        <script type="text/javascript">
            var currUrl = window.location.pathname.toLowerCase();
            if (currUrl.indexOf("login") > -1 || currUrl == "/" || currUrl == "/main") {
                document.getElementsByTagName("html")[0].className = "loginHtml";
                document.getElementsByTagName("body")[0].className = "loginBody";
            } else if (currUrl.indexOf("main") > -1) {
                document.getElementsByTagName("body")[0].className = "main_body";
            } else {
                document.getElementsByTagName("body")[0].className = "childrenBody";
            }
        </script>
        @Html.AntiForgeryToken()
        @RenderBody()
    </form>
    <script src="~/js/layui/layui.js"></script>
    <script src="~/js/cache.js"></script>
    <script src="~/js/axios.min.js"></script>
    <script type="text/javascript">
        layui.config({
            base: "@Url.Content("~/js/")"
        }).extend({
            "bodyTab": "bodyTab",
            "treeselect": "treeSelect/treeselect",
            "treetable": "treetable/treetable",
            "tools": "tools",
            "formSelects":"selecttags/formSelects-v4"
            });
        var rowButton = [], headButton = [];
        if (top.tab) {
            var _iframeid= top.tab.getSelfLayId();
            if (top.toolButton) {
                headButton = top.toolButton[_iframeid] || headButton;
            }
            if (top.rowButton) {
                rowButton = top.rowButton[_iframeid] || rowButton;
            }
        }
    </script>

    <script type="text/html" id="toolsRow">
        {{# layui.each(rowButton, function(index, item){ }}
        <a class="layui-btn layui-btn-xs {{item.FullName.indexOf('删除')>-1?'layui-btn-danger':''}}" lay-event="{{item.JsEvent}}" data-url="{{item.UrlAddress}}"><i class="{{item.Icon}}"></i>{{item.FullName}}</a>
        {{#  }); }}
    </script>
    <script type="text/html" id="toolsHead">
        <div class="layui-btn-group">
            {{# layui.each(headButton, function(index, item){ }}
            <a class="layui-btn layui-btn-sm" data-url="{{item.UrlAddress}}" lay-event="{{item.JsEvent}}">
                <i class="{{item.Icon}}"></i>{{item.FullName}}
            </a>
            {{#  }); }}
        </div>
    </script>

    @await RenderSectionAsync("script", false)
</body>
</html>
